<%@ page import="com.stand.hardcode.entity.StandUser, com.stand.hardcode.util.RequestAttributes" %>
<%

StandUser u = (StandUser)request.getSession().getAttribute(RequestAttributes.CURRENT_USER);
%>
<html>
<h1>Profile Page</h1>

<h2>Nickname: <%=u.getName() %></h2>
<h2>Email: <%=u.getEmail() %></h2>
<h2>ADmin?: <%=u.isAdmin() %></h2>

<form action="updateprofile" method="POST">
<textarea name="description" rows="3" cols="100"><%=u.getDescription() %></textarea>

<input type="submit" value="update" />
</form>

<form action="/deleteaccount" method="GET">
<input type="submit" value="Delete Your Account" />
</form>

<a href="/logout">Log out</a>
</html>